home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5491 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: yama.mcc.ac.uk!dmu!usenet
  2. From: Timothy Eves <se1te@dmu.ac.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Copy with c
  5. Date: Fri, 15 Mar 1996 18:12:21 +0000
  6. Organization: De Montfort Univerity
  7. Message-ID: <3149B305.586B@dmu.ac.uk>
  8. References: <660.6643T24T753@enterprise.net>
  9. NNTP-Posting-Host: harrier.cms.dmu.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
  14.  
  15. Do mean using ANSI C or using the OS?
  16.  
  17. The ANSI C method you would have to open the source and dest files and
  18. do a byte by byte copy.
  19.  
  20. Using the OS would be better as you could do a buffered copy using the
  21. dos.library commands.
  22.  
  23. i.e. Allocate a 1Kb buffer and read from the source and write to dest in
  24. 1k chunks.
  25.  
  26. Tim Eves
  27. -- 
  28. ------------------------------------------------------------O----------------    
  29. Out of the gloom came a voice, "Smile  and  be  happy things| EMail To:
  30. could  be  worse",  it  said.  So I smiled and I was  happy,|
  31. se1te@dmu.ac.uk
  32. and  behold  things  did  get worse.                |
  33. ------------------------------------------------------------O----------------
  34.